package com.h3c.nem.config.proConfig;

import com.h3c.nem.config.properties.TbOfferWorkerProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chenyifan
 * @date 2022/6/6 15:03
 */
@Configuration
public class TbOfferWorkerPropertiesConfig {

    @Bean("baseOfferWorker")
    @ConfigurationProperties(prefix = "offer.worker")
    public TbOfferWorkerProperties getProperties() {
        return new TbOfferWorkerProperties();
    }
}
